<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/28
 * Time: 13:59
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait PartnerMessageTrait
{
    use BaseTrait;
    // 合作者key
    protected $key;
    // 验证秘钥
    protected $loginSession;
    // 图片列表字符串
    protected $photo_list_str;
    // 留言内容
    protected $content;
    // 合作伙伴留言ID
    protected $partner_message_id;

    public function __construct(Request $request)
    {
        $this->photo_list_str = $request->input('photo_list_str', '');
        $this->content = $request->input('content', '[]');
        $this->key = $request->input('key', '');
        $this->loginSession = $request->input('loginSession', '');
        $this->partner_message_id = $request->input('partner_message_id', 0);
    }
}